Current Location: Home> Function Categories> pow

pow

Exponential expressions
Name:pow
Category:math
Programming Language:php
One-line Description:Return to the power of y of x.

Definition and usage

The pow() function returns to the y power of x .

Example

 <?php
echo pow ( 4 , 2 ) ;
echo pow ( 6 , 2 ) ;
echo pow ( - 6 , 2 ) ;
echo pow ( - 6 , - 2 ) ;
echo pow ( - 6 , 5.5 ) ;
?>

Try it yourself

grammar

 pow ( x , y )
parameter describe
x Required. A number.
y Required. A number.

illustrate

Returns the power of x to the y power. If possible, this function returns integer.

If the power cannot be calculated, a warning will be issued and pow() will return false. PHP version 4.2.0 starts with pow() and does not generate any warnings.

Similar Functions
Popular Articles